package com.bgIntlgn.client.entity.privilege;

import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * 组合技能和菜单的关联表
 * @author shenzhang
 *
 */
@Table(name = "skill_menus", constrain = "")
public class SkillMenu implements Bean{
	@Field(name = "skill_name", type = "char(40)", constrain = "not null references skills(name) on update cascade ")
    private String skillName;
    
	@Field(name = "menu_id", type = "int8", constrain = "not null references menus(id) on update cascade ")
    private Long menuId;
	
	public String getSkillName() {
		return skillName.trim();
	}
	
	public void setSkillName(String name) {
		skillName = name.trim();
	}
	
	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long id) {
		menuId = id;
	}
}
